package com.suntine.familytree.core.framework.util;

import javax.servlet.http.HttpServletRequest;

/**
 * @corporation 
 * @author suntine
 * @creation 2011-4-2 下午08:56:00
 * @description 
 */
public class AjaxUtils {

	public static boolean isAjaxRequest(String requestedWith) {
		return requestedWith != null ? "XMLHttpRequest".equals(requestedWith) : false;
	}

	public static boolean isAjaxUploadRequest(HttpServletRequest request) {
		return request.getParameter("ajaxUpload") != null;
	}
	
	private AjaxUtils() {}
	
}
